package com.okq.service;

import com.okq.entity.Customer;
import com.okq.util.page.Page;

import java.util.List;

/**
 * 描述 : 客户业务接口
 * 作者 : zdl
 * 日期 : 2017/6/28 17:34
 */
public interface ICustomerService {

    void saveCustomer(Customer customer);

    void deleteCustomer(Customer customer);

    void updateCustomer(Customer customer);

    void saveOrUpdateCustomer(Customer customer);

    Customer getCustomerById(String id);

    List<Customer> listAllCustomer();

    Page<Customer> pageByCustomer(Page<Customer> page, Customer customer);

    Customer getCustomerByName(String name);

    Customer getCustomerByContact(String contact);

    List<Customer> listCustomerByKeyword(String keyword);

    List<Customer> listCustomerByComCode(String comCode);

	String getDictByValueAndType(String productName, String productType);
}
